home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 February / macformat-034.iso / mac / Shareware City / Developers / simple-sockets-11-c / Simple Sockets 1.1 ƒ / ip ƒ / iperr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-14  |  1.1 KB  |  37 lines  |  [TEXT/CWIE]

  1. /*
  2.  * iperr.h
  3.  *
  4.  * Constants that define the UNIX errors for the socket-like interface
  5.  *
  6.  * Mike Trent 8/94
  7.  *
  8.  */
  9.  
  10. #ifndef _IPERR_
  11. #define _IPERR_
  12.  
  13. #include <Types.h>
  14.  
  15. #define    EINTR            4        /* interrupted system call        */
  16. #define    EIO                5        /* I/O error        */
  17. #define    EBADF            9        /* Bad file number */
  18. #define    EINVAL            22        /* Invalid argument */
  19. #define    EMFILE            24        /* Too many open files */
  20. #define    EFBIG            27        /* File too large            */
  21. #define    EPIPE            32        /* Broken pipe                */
  22. #define    ENOTSOCK        38        /* Socket operation on non-socket */
  23. #define    ESOCKTNOSUPPORT    44        /* Socket type not supported */
  24. #define    EOPNOTSUPP        45        /* Operation not supported on socket */
  25. #define EPFNOSUPPORT    46        /* if family != AF_INET */
  26. #define    EADDRINUSE        48        /* Address already in use */
  27. #define    EADDRNOTAVAIL    49        /* Can't assign requested address */
  28. #define EWOULDBLOCK     54
  29. #define    EISCONN            56        /* Socket is already connected */
  30. #define    EISNCONN        72        /* Socket is not connected */
  31. #define ECONNRESET      73      /* Connection reset by peer */
  32.  
  33. #define errno     gErrno
  34. extern int        gErrno;        //defined in ip.c
  35. extern OSErr    gMacErrno;    //defined in ip.c
  36.  
  37. #endif